import Vue from 'vue'
import VueRouter from 'vue-router'
import HeroList from '../components/HeroList.vue'
import Skill from '../components/Skill'
import Tool from '../components/Tool'
import HeroAdd from '../components/HeroAdd'
import HeroEdit from '../components/HeroEdit'

Vue.use(VueRouter)

const routes = [
  {path:'/herolist', component: HeroList},
  {path:'/skill', component: Skill},
  {path:'/tool', component: Tool},
  {path:'/heroadd',component: HeroAdd},
  {path:'/herodedit',component: HeroEdit}
]
const router = new VueRouter({
  routes
})
export default router